<?php

/**
 * @author luhua
 */
class ArticleModel extends Model {

    protected $_validate = array(
        array('title', 'require', 'Title is required'),
    );
    public $_auto = array(
        array('create_time', 'nowDate', self::MODEL_INSERT, 'callback')
    );

    public function nowDate() {
        return time();
    }



}

?>
